<?php

namespace app\admin\model\parts;

use think\Model;

/**
 * Entrydetail
 */
class Entrydetail extends Model
{
    // 表名
    protected $name = 'parts_entrydetail';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;


    public function partsInfo(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\parts\Info::class, 'parts_info_id', 'parts_name');
    }
}